<table>
  <tr>
    <th>Nome e Cognome</th>
		<th>e-Mail</th>
    <th colspan="2">Assistenza</th>
    <th colspan="2">Contratti</th>
    <th colspan="3">Comandi</th>
  </tr>
<% for client in @clients %>
  <tr class="<%= cycle("even", "odd") %>">
    <td><%= client.name_or_society %></td>
		<td><%= mail_to(client.email, client.short_email) %></td>
    <td class="center"><%= link_to image_tag("add_ass.png", :alt => "add assistance"), { :controller => "assistances", :action => "new", :id => client } %></td>
    <td class="center"><%= link_to image_tag("list.png", :alt => "assistance list"), { :controller => "assistances", :action => "index", :client_id => client } %></td>
    <td class="center"><%= link_to image_tag("add_cont.png", :alt => "add contract"), { :controller => "contracts", :action => "new", :id => client } %></td>
    <td class="center"><%= link_to image_tag("list.png", :alt => "contract list"), { :controller => "contracts", :action => "index", :client_id => client } %></td>
    <td><%= link_to image_tag("info.png", :alt => "show"), client %></td>
    <td><%= link_to image_tag("edit.png", :alt => "edit"), edit_client_path(client) %></td>
    <td><%= link_to image_tag("delete.png", :alt => "delete"), client, 
						:confirm => "Tutte le assistenze ed i contratti associati \na \"#{client.name_or_society}\" verranno eliminati. \nSei sicuro?", 
						:method => :delete %>
		</td>
  </tr>
<% end %>
</table>